import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  // {
  //   path: '/',
  //   component: () => import('@/views/Main'),
  //   children: [
  //     {
  //       path: '/home',
  //       name: 'home',
  //       component: () => import('@/views/home/Home')
  //     },
  //     {
  //       path: '/video',
  //       name: 'video',
  //       component: () => import('@/views/videomanage/VideoManage')
  //     },
  //     {
  //       path: '/user',
  //       name: 'user',
  //       component: () => import('@/views/usermanage/UserManage')
  //     },
  //     {
  //       path: '/page1',
  //       name: 'page1',
  //       component: () => import('@/views/other/PageOne')
  //     },
  //     {
  //       path: '/page2',
  //       name: 'page2',
  //       component: () => import('@/views/other/PageTwo')
  //     }
  //   ]
  // },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/Login')
  }
]

const router = new VueRouter({
  routes
})

export default router
